import {mapMutations} from 'vuex'

export default {
    ...mapMutations([
		''
    ]),
	toTodayData(){
		uni.navigateTo({
			url: '/pages/index/todayData'
		})
	},
	getPageList() {
		let that = this
		if (that.loading) {
			return false
		}
		that.loading = true
		that.$httpRequest.get({
			that: that,
			url: 'h5/getUserFollowPage',
			params: {
				userId:that.id,
				pageNo: that.page,
				pageSize: that.list_rows,
			},
			success: res => {
				that.loading = false
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					if (that.page === 1) {
						that.list = res.data.rows
					} else {
						that.list = that.list.concat(res.data.rows)
					}
					that.page++
				} else {
					
				}
			}
		})
	},
	_previewImage(image) {
		var imgArr = [];
		imgArr.push(image);
		//预览图片
		uni.previewImage({
			urls: imgArr,
			current: imgArr[0]
		});
	},
	close(){
		this.$refs.sendPopup.close()
	},
	toComment(){
		this.$refs.sendPopup.open()
	}

}